/*    file: CSipMessage.cpp
 *    desc:
 * 
 * created: 2015-11-09
 *  author: chuanjiang.zh@qq.com
 * company: 
 */

#include "stdafx.h"
#include "CSipMessage.h"


CSipMessage::CSipMessage():
    m_out(false)
{

}

CSipMessage::~CSipMessage()
{

}

std::string CSipMessage::brief() const
{
    std::string str;
    if (m_out)
    {
        str = ">> ";
    }
    else
    {
        str = "<== ";
    }

    if (!m_line.empty())
    {
        str += m_line;
    }
    else
    {
        str += m_uri;
    }
    
    return str;
}

